<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../../Templates/SubFolderTemplate.xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">
        <f:view beforePhase="#{viewCustomersQuotations.initView}">
            <h:form prependId="false">
                <p:dataTable id ="table1" var="saleQuotation" value="#{viewCustomersQuotations.selectedSaleQuotations}" 
                             selection ="viewCustomersQuotations.selectedSaleQuotation" onRowSelectUpdate="display"
                             dynamic="true" paginator="true" rows="5" emptyMessage="No Sale Quotations" > 

                    <p:column sortBy="#{saleQuotation.id}" filterBy="#{saleQuotation.id}"> 
                                <f:facet name="header"> 
                                    <h:outputText value="Sale Quotation ID" /> 
                                </f:facet> 
                                <h:outputText value="#{saleQuotation.id}" /> 
                    </p:column> 
                    
                    <p:column sortBy="#{saleQuotation.saleInquiryDate}" filterBy="#{saleQuotation.saleInquiryDate}"> 
                        <f:facet name="header"> 
                            <h:outputText value="Date" /> 
                        </f:facet> 
                        <h:outputText value="#{saleQuotation.saleInquiryDate}" /> 
                    </p:column> 
                   
                    <p:column sortBy="#{saleQuotation.saleLead.registrationNumber}"> 
                        <f:facet name="header"> 
                            <h:outputText value="Registration Number" /> 
                        </f:facet> 
                        <h:outputText value="#{saleQuotation.saleLead.registrationNumber}" /> 
                    </p:column>
                     
                    <p:column sortBy="#{saleQuotation.saleLead.saleLeadName}"> 
                        <f:facet name="header"> 
                            <h:outputText value="Sale Lead Name" /> 
                        </f:facet> 
                        <h:outputText value="#{saleQuotation.saleLead.saleLeadName}" /> 
                    </p:column>
                </p:dataTable>
            </h:form>
        </f:view>
    </ui:define>
</ui:composition>
